package Mangos::DB::Characters::GuildBankEventlog;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'guild_bank_eventlog',

    columns => 
    [
        guildid        => { type => 'integer', not_null => 1 },
        LogGuid        => { type => 'integer', not_null => 1 },
        TabId          => { type => 'integer', not_null => 1 },
        EventType      => { type => 'integer', default => '0', not_null => 1 },
        PlayerGuid     => { type => 'integer', default => '0', not_null => 1 },
        ItemOrMoney    => { type => 'integer', default => '0', not_null => 1 },
        ItemStackCount => { type => 'integer', default => '0', not_null => 1 },
        DestTabId      => { type => 'integer', default => '0', not_null => 1 },
        TimeStamp      => { type => 'bigint', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guildid', 'LogGuid', 'TabId' ],
);

1;

package Mangos::DB::Characters::GuildBankEventlog::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::GuildBankEventlog' }

__PACKAGE__->make_manager_methods('guild_bank_eventlog');

1;
